package pengfei.com;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Wodexiangmu05Activity extends Activity {
    /** Called when the activity is first created. */
	private Button myButton=null;
	private Button myButton01=null;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        myButton = (Button)findViewById(R.id.myButton);
        myButton.setOnClickListener(new MyButtonListener());
        myButton01=(Button)findViewById(R.id.Button1);
        myButton01.setOnClickListener(new MyButton01Listener());
    }
    class MyButtonListener implements OnClickListener{

		@Override
		public void onClick(View v) {
			// TODO Auto-generated method stub
			Intent intent =new Intent();
			intent.setClass(Wodexiangmu05Activity.this,otherActivity.class);
			Wodexiangmu05Activity.this.startActivity(intent);
			
		}
    }
    class MyButton01Listener implements OnClickListener{

		@Override
		public void onClick(View v) {
			// TODO Auto-generated method stub
			Uri uri = Uri.parse("http://google.com");          
			Intent it = new Intent(Intent.ACTION_VIEW, uri);          
			startActivity(it);  
			
			
			
		}}
}